Skip to content

UI: Hide "run with latest bundle version" clear option for non-versioned bundles#70390

Draft
MannXo wants to merge 1 commit into
apache:mainfrom
MannXo:ui-hide-run-on-latest-checkbox-non-versioned-bundle
Draft

UI: Hide "run with latest bundle version" clear option for non-versioned bundles#70390
MannXo wants to merge 1 commit into
apache:mainfrom
MannXo:ui-hide-run-on-latest-checkbox-non-versioned-bundle

Conversation

@MannXo

@MannXo MannXo commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

When clearing a Dag run, the "run with latest bundle version" checkbox was shown whenever the run's Dag version differed from the latest. For bundles that do not support versioning (e.g. LocalDagBundle) the run's bundle_version is always null and the serialized Dag resolved at run time is always the latest, so the checkbox offered a choice that had no effect.

The checkbox now also requires the run to be pinned to a specific bundle version, so it appears only for versioning-capable bundles (e.g. GitDagBundle) where toggling it actually changes the outcome. The visibility logic is extracted into a small pure helper with unit tests, mirroring the existing TaskInstance/runOnLatestVersion.ts.

closes: #70371


Was generative AI tooling used to co-author this PR?
  • Yes — Claude Code (Opus 4.8)

Generated-by: Claude Code (Opus 4.8) following the guidelines

…ned bundles

When clearing a Dag run, the option was shown whenever the run and latest Dag
versions differed. For bundles that do not support versioning (e.g.
LocalDagBundle) the run is never pinned to a bundle version and always resolves
to the latest serialized Dag, so the option had no effect. Gate its visibility
on the run actually being pinned to a bundle version so it appears only where it
changes the outcome.
@boring-cyborg boring-cyborg Bot added the area:UI Related to UI/UX. For Frontend Developers. label Jul 24, 2026
@MannXo
MannXo marked this pull request as draft July 24, 2026 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:UI Related to UI/UX. For Frontend Developers.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hide "Run with latest bundle version" checkbox for non-versioned bundles when clearing

1 participant